<include file="application/admin/view/public/left.html"/>
<div id="dcMain">
   <!-- 当前位置 -->
<div id="urHere">管理中心<b>></b><strong>权限列表：</strong> </div>   <div id="manager" class="mainBox" style="height:auto!important;height:550px;min-height:550px;">
    <h3><a href="{:U('Manage/index')}" class="actionBtn">返回列表</a>权限列表：</h3>
            <form action="{:U('Manage/saveNav')}" method="post">
     <table width="100%" border="0" cellpadding="8" cellspacing="0" class="tableBasic">
      <input type="hidden" value="{$id}" name="admin_id" />
       <tbody>
              <tr>
              <volist name='nav' id='vo' key='key'>
              
                  <td><input name="nav[]" type="checkbox" value="{$vo.nav_id}" class="xuanzhong" <eq name="vo.status" value="1">checked="checked"</eq> />{$vo.nav_name}
                  </td>
              <if condition="$key%4==0">
              </tr><tr>
              </if>
              </volist>
              </tr>
                <tr><td colspan="4" style="text-align:center;">
                <input type="button" value="全选"class="btn" onclick="quanxuan()">
                <input type="button" value="全不选"class="btn" onclick="buxuan()">
                <input type="submit" value="确认"class="btn"></td></tr>
            </tbody>
     </table>
    </form>
                   </div>
 </div>
 <div class="clear"></div>
<div id="dcFooter">
 <div id="footer">
  <div class="line"></div>
  <ul>
   版权所有 © 2013-2015 新能量，并保留所有权利。
  </ul>
 </div>
</div><!-- dcFooter 结束 -->
<div class="clear"></div> </div>
</body>
</html>
<script>
  function quanxuan(){
    $(".xuanzhong").prop("checked",true);
  }
  function buxuan(){
    $(".xuanzhong").prop("checked",false);
  }
</script>